[#import "/framework/JGP.htm"  as JGP]
<!--
项目   parent
作者   LOUFEI [Gavin]
时间   2018/4/13

    @Column(name = "icon",length = 30)
    private String icon;
    @Column(name = "name",length = 100)
    private String name;
    @Column(name = "sort")
    private Integer sort;
    @Column(name = "remark")
    private String remark;
-->
[@JGP.head "Title"/]
[@JGP.body]
   <jgp-div _row="['40','*']" _runit="px">
       <div slot="1-1">
           <jgp-btn _fn="saveCallback" _form="roleForm">保存</jgp-btn>
       </div>
       <jgp-form slot="2-1" _id="roleForm" _action="/security/admin/adminApiController/saveRole" _cols="12"
                 _fdata='${fdata!''}'>
           <jgp-text _name="parent.name" _col="6" _label="父级" _placeholder="父级" _disabled="true"></jgp-text>
           <jgp-text _name="name" _col="6" _label="角色名" _placeholder="角色名" _required="true"></jgp-text>
           <jgp-text _name="icon" _col="6" _label="图标" _placeholder="图标" _required="true"></jgp-text>
           <jgp-num _name="sort" _col="6" _label="排序" _placeholder="排序" _required="true"></jgp-num>
           <jgp-area _name="remark" _col="12" _label="描述" _placeholder="描述"></jgp-area>
       </jgp-form>
   </jgp-div>
[/@JGP.body]

[@JGP.foot]
    <script>
        function saveCallback(result) {
            if (result.back&&result.back.flag)
                JGP.$close(result.back.flag);
        }
    </script>
[/@JGP.foot]